<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- 将整数转换为两个无零整数的和 -->
    <script>
      var getNoZeroIntegers = function (n) {
        let ans = new Array(2).fill(0)
        let A = 1
        let B = n - 1
        while (A.toString().includes('0') || B.toString().includes('0')) {
          A++
          B--
        }
        ans[0] = A
        ans[1] = B
        return ans
      }
      console.log(getNoZeroIntegers(10000))
    </script>
  </body>
</html>
